<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head th:replace="_fragments :: head(~{::title})">
    <title>首页</title>
</head>
<body>
<!--导航条-->
<nav th:replace="_fragments :: menu(1)" class="ui m-bg segment attached m-padded-tb-mini animated fadeInDown m-shadow-small">
    <!--  天气  -->
    <div id="tp-weather-widget" class="ui animated fadeInUp  m-left" style=" position: fixed; z-index: 999!important;">
        <div class="sc-csuQGl sw-container sc-eqIVtm fsIvwB">
            <div class="sw-bar-slim sc-fMiknA EKHJj">
                <span class="sw-typography sw-bar-slim-location sc-bwzfXH dsrBSL m-text-thin" color="inherit">武汉</span>
                <img class="sc-dVhcbM idzueu sc-bdVaJa hlBhLX" style="width: 20px;" src="//cdn.sencdn.com/widget2/assets/img/chameleon/weather/10.svg">
                <span class="sw-typography sw-bar-slim-temperature sc-bwzfXH dsrBSL m-text-thin" style="font-weight: 300" color="inherit">9°</span>
            </div><div hidden="" class="sc-gisBJw gBTmdH"><div class="sw-card-slim-container sc-fAjcbJ hWtwV" style="opacity: 0; display: flex; width: 0px; height: 0px;"><div class="sw-card-slim-background sc-caSCKo jkISYm"><div class="sw-card-slim-close sc-gipzik gjqjck">×</div><div class="sw-ui-main-container sc-fjdhpX fAFgBy"><div class="sc-htpNat sw-ui-main sc-gzVnrw blUPwB"><div class="sw-ui-main-arcContainer sc-dnqmqq cHlxbs"><div class="sw-ui-main-arc sc-iwsKbI bRmqwc"><img top="23.816354300606108" left="92.59597044191635" class="sw-ui-main-weatherIcon sc-gZMcBi cezvPF sc-bdVaJa hlBhLX" src="//cdn.sencdn.com/widget2/assets/img/chameleon/weather/10.svg"></div></div><div class="sw-ui-main-title sc-cSHVUG iWEWlT"><p class="sw-typography  sc-bwzfXH jQHZYL" color="inherit"><a target="_blank" color="textPrimary" href="//m.seniverse.com/weather/WT3Q0FW9ZJ3Q?source=widget" class="sc-jzJRlG ggJaPA">武汉</a> </p><span class="sw-typography sw-ui-main-time sc-bwzfXH eccBLL" color="textSecondary">15:20发布</span></div><div class="sw-ui-main-grow sc-htoDjs hzdUrF"></div><p class="sw-typography sw-ui-main-temperature sc-bwzfXH eofBUk" color="inherit">9°</p><div class="sw-ui-main-timeContainer sc-VigVT eMNzRy"><span class="sw-typography sw-ui-main-rise sc-bwzfXH bpTFnS" color="textSecondary">07:21</span><span class="sw-typography sw-ui-main-temperatureRange sc-jTzLTM bFsUuh sc-bwzfXH dBbtWF" color="inherit">阵雨 5°C~12°C</span><span class="sw-typography sw-ui-main-set sc-bwzfXH fwGqcW" color="textSecondary">17:48</span> </div></div></div><div class="sc-htpNat sw-ui-tile sc-kAzzGY OeVeF"><div class="sw-ui-tile-container sc-kgoBCf eBcdRn"><p class="sw-typography sw-ui-tile-header sc-bwzfXH lgjLwG" color="inherit">天气现象</p><div class="sw-ui-tile-content sc-dxgOiQ jQorrF"><p class="sw-typography sc-kGXeez sw-ui-tile-text sc-kpOJdX cPIXGr sc-bwzfXH bcxaVF" color="inherit"><img class="sw-ui-tile-text-icon sc-chPdSV kQwelo sc-bdVaJa hlBhLX" src="//cdn.sencdn.com/widget2/assets/img/chameleon/weather/10.svg"><span class="sw-typography sw-ui-tile-text-suffix sc-bwzfXH jCzPjW" color="inherit">阵雨</span></p></div></div></div><div class="sc-htpNat sw-ui-tile sc-kAzzGY OeVeF"><div class="sw-ui-tile-container sc-kgoBCf eBcdRn"><p class="sw-typography sw-ui-tile-header sc-bwzfXH lgjLwG" color="inherit">温度</p><div class="sw-ui-tile-content sc-dxgOiQ jQorrF"><p class="sw-typography sw-ui-tile-text sc-kGXeez BUFfT sc-bwzfXH bcxaVF" color="inherit">9<span class="sw-typography sw-ui-tile-text-suffix sc-bwzfXH jCzPjW" color="inherit">°C</span></p></div></div></div><div class="sc-htpNat sw-ui-tile sc-kAzzGY OeVeF"><div class="sw-ui-tile-container sc-kgoBCf eBcdRn"><p class="sw-typography sw-ui-tile-header sc-bwzfXH lgjLwG" color="inherit">今日天气</p><div class="sw-ui-tile-content sc-dxgOiQ jQorrF"><p class="sw-typography sc-kGXeez sw-ui-tile-text sc-kpOJdX cPIXGr sc-bwzfXH bcxaVF" color="inherit"><img class="sw-ui-tile-text-icon sc-chPdSV kQwelo sc-bdVaJa hlBhLX" src="//cdn.sencdn.com/widget2/assets/img/chameleon/weather/4.svg"></p><p class="sw-typography sw-ui-tile-text sc-kGXeez BUFfT sc-bwzfXH bcxaVF" color="inherit"><span class="sw-typography sw-ui-tile-text-suffix sc-bwzfXH jCzPjW" color="inherit"> / </span></p><p class="sw-typography sc-kGXeez sw-ui-tile-text sc-kpOJdX cPIXGr sc-bwzfXH bcxaVF" color="inherit"><img class="sw-ui-tile-text-icon sc-chPdSV kQwelo sc-bdVaJa hlBhLX" src="//cdn.sencdn.com/widget2/assets/img/chameleon/weather/13.svg"></p></div></div></div><div class="sc-htpNat sw-ui-tile sc-kAzzGY OeVeF"><div class="sw-ui-tile-container sc-kgoBCf eBcdRn"><p class="sw-typography sw-ui-tile-header sc-bwzfXH lgjLwG" color="inherit">明日气温</p><div class="sw-ui-tile-content sc-dxgOiQ jQorrF"><p class="sw-typography sw-ui-tile-text sc-kGXeez BUFfT sc-bwzfXH bcxaVF" color="inherit">5/10<span class="sw-typography sw-ui-tile-text-suffix sc-bwzfXH jCzPjW" color="inherit">°C</span></p></div></div></div><div class="sc-htpNat sw-ui-tile sc-kAzzGY OeVeF"><div class="sw-ui-tile-container sc-kgoBCf eBcdRn"><p class="sw-typography sw-ui-tile-header sc-bwzfXH lgjLwG" color="inherit">穿衣指數</p><div class="sw-ui-tile-content sc-dxgOiQ jQorrF"><p class="sw-typography sw-ui-tile-text sc-kGXeez BUFfT sc-bwzfXH bcxaVF" color="inherit">较冷</p></div></div></div><div class="sc-htpNat sw-ui-tile sc-kAzzGY OeVeF"><div class="sw-ui-tile-container sc-kgoBCf eBcdRn"><p class="sw-typography sw-ui-tile-header sc-bwzfXH lgjLwG" color="inherit">感冒指數</p><div class="sw-ui-tile-content sc-dxgOiQ jQorrF"><p class="sw-typography sw-ui-tile-text sc-kGXeez BUFfT sc-bwzfXH bcxaVF" color="inherit">少发</p></div></div></div><div class="sc-htpNat sw-ui-tile sc-kAzzGY OeVeF"><div class="sw-ui-tile-container sc-kgoBCf eBcdRn"><p class="sw-typography sw-ui-tile-header sc-bwzfXH lgjLwG" color="inherit">旅游指數</p><div class="sw-ui-tile-content sc-dxgOiQ jQorrF"><p class="sw-typography sw-ui-tile-text sc-kGXeez BUFfT sc-bwzfXH bcxaVF" color="inherit">适宜</p></div></div></div><div class="sc-htpNat sw-ui-tile sc-kAzzGY OeVeF"><div class="sw-ui-tile-container sc-kgoBCf eBcdRn"><p class="sw-typography sw-ui-tile-header sc-bwzfXH lgjLwG" color="inherit">紫外线强度</p><div class="sw-ui-tile-content sc-dxgOiQ jQorrF"><p class="sw-typography sw-ui-tile-text sc-kGXeez BUFfT sc-bwzfXH bcxaVF" color="inherit">弱</p></div></div></div><div class="sc-htpNat sw-ui-tile sc-kAzzGY OeVeF"><div class="sw-ui-tile-container sc-kgoBCf eBcdRn"><p class="sw-typography sw-ui-tile-header sc-bwzfXH lgjLwG" color="inherit">运动指數</p><div class="sw-ui-tile-content sc-dxgOiQ jQorrF"><p class="sw-typography sw-ui-tile-text sc-kGXeez BUFfT sc-bwzfXH bcxaVF" color="inherit">较不宜</p></div></div></div><div class="sc-htpNat sw-ui-carousel sc-jKJlTe hNWUPd"><div class="sw-ui-carousel-container sc-ckVGcZ dnSWKs"><div class="sw-ui-carousel-wrapper sc-kEYyzF idlYFc" style="left: 0px;"><div class="sw-ui-carousel-item sc-kkGfuU fyUtqy"><div class="sw-ui-tile-container sc-kgoBCf eBcdRn"><p class="sw-typography sw-ui-tile-header sc-bwzfXH lgjLwG" color="inherit">1/20 今天</p><div class="sw-ui-tile-content sc-dxgOiQ jQorrF"><p class="sw-typography sc-kGXeez sw-ui-tile-text sc-kpOJdX cPIXGr sc-bwzfXH bcxaVF" color="inherit"><img class="sw-ui-tile-text-icon sc-chPdSV kQwelo sc-bdVaJa hlBhLX" src="//cdn.sencdn.com/widget2/assets/img/chameleon/weather/4.svg"><span class="sw-typography sw-ui-tile-text-suffix sc-bwzfXH jCzPjW" color="inherit"> 5/12°C</span></p></div></div></div><div class="sw-ui-carousel-item sc-kkGfuU fyUtqy"><div class="sw-ui-tile-container sc-kgoBCf eBcdRn"><p class="sw-typography sw-ui-tile-header sc-bwzfXH lgjLwG" color="inherit">1/21 明天</p><div class="sw-ui-tile-content sc-dxgOiQ jQorrF"><p class="sw-typography sc-kGXeez sw-ui-tile-text sc-kpOJdX cPIXGr sc-bwzfXH bcxaVF" color="inherit"><img class="sw-ui-tile-text-icon sc-chPdSV kQwelo sc-bdVaJa hlBhLX" src="//cdn.sencdn.com/widget2/assets/img/chameleon/weather/13.svg"><span class="sw-typography sw-ui-tile-text-suffix sc-bwzfXH jCzPjW" color="inherit"> 5/10°C</span></p></div></div></div><div class="sw-ui-carousel-item sc-kkGfuU fyUtqy"><div class="sw-ui-tile-container sc-kgoBCf eBcdRn"><p class="sw-typography sw-ui-tile-header sc-bwzfXH lgjLwG" color="inherit">1/22 后天</p><div class="sw-ui-tile-content sc-dxgOiQ jQorrF"><p class="sw-typography sc-kGXeez sw-ui-tile-text sc-kpOJdX cPIXGr sc-bwzfXH bcxaVF" color="inherit"><img class="sw-ui-tile-text-icon sc-chPdSV kQwelo sc-bdVaJa hlBhLX" src="//cdn.sencdn.com/widget2/assets/img/chameleon/weather/13.svg"><span class="sw-typography sw-ui-tile-text-suffix sc-bwzfXH jCzPjW" color="inherit"> 5/10°C</span></p></div></div></div></div><div class="sc-eNQAEJ fNtLER" style="left: 5px;"><img class="sc-hMqMXs ewqNhp sc-bdVaJa hlBhLX" src="//cdn.sencdn.com/widget2/assets/img/chameleon/arrow-left.svg"></div><div class="sc-eNQAEJ fNtLER" style="right: 5px;"><img class="sc-hMqMXs ewqNhp sc-bdVaJa hlBhLX" src="//cdn.sencdn.com/widget2/assets/img/chameleon/arrow-right.svg"></div></div></div><div class="sw-ui-brand sc-hSdWYo emBiRU"><a target="_blank" color="textPrimary" href="//seniverse.com?source=widget" class="sc-eHgmQL hQLwwD"><img class="sc-cvbbAY gYiOzp sc-bdVaJa hlBhLX" src="//cdn.sencdn.com/widget2/assets/img/chameleon/logo.svg"><p class="sw-typography  sc-bwzfXH jCzPjW" color="inherit">数据服务来自心知天气</p></a></div></div></div></div></div></div>
    <div class="ui container">
        <div class="ui secondary  stackable menu">
            <a href="#" class="item">
                <img class="ui image" src="http://cdn.sakurac.cn/sakura.png"
                     style="width: 60px;height: 60px;padding-top: 4px" alt="">
                <h1 class="ui header item" style="color: #ff8080">Gradle°</h1>
            </a>
            <a href="#" class="item m-item m-pink m-mobile-hide"><i class="icon home m-pink"></i>首页</a>
            <a href="#" class="item m-item m-pink m-mobile-hide"><i class="idea icon m-pink"></i>分类</a>
            <a href="#" class="item m-item m-pink m-mobile-hide"><i class="tags icon m-pink"></i>标签</a>
            <a href="#" class="item m-item m-pink m-mobile-hide"><i class="clock icon m-pink"></i>归档</a>
            <a href="#" class="item m-item m-pink m-mobile-hide"><i class="info icon m-pink"></i>关于我</a>
            <a href="#" class="item m-item m-pink m-mobile-hide"><i class="mail icon m-pink"></i>留言板</a>
            <a href="#" class="item m-item m-pink m-mobile-hide"><i class="linkify icon m-pink"></i>友链</a>
            <div class="right item m-item m-mobile-hide">
                <form name="search" action="" method="post">
                    <div class="ui icon  transparent  input">
                        <input type="text" id="search" placeholder="搜索博客..." class="text"
                               style="color:#ffa2a2">
                        <i class="search link m-pink icon"></i>
                    </div>
                </form>
            </div>
        </div>
    </div>
    <a href="#" class="ui big menu toggle m-pink icon button m-right-top m-mobile-show">
        <i class="sidebar icon"></i>
    </a>
</nav>

<!--中间内容-->
<div id="waypoint" class="m-container m-padded-tb-big animated fadeInUp">
    <div class="ui container">
        <div class="ui stackable grid">
            <!--   左边博客列表     -->
            <div class="eleven wide column">
                <!-- 头部   -->
                <div class="ui top attached m-bg segment">
                    <div class="ui middle aligned two column  grid m-top-color">
                        <div class="column">
                            <h3 class="ui header m-pink m-text-thin">博客</h3>
                        </div>
                        <div class="column right aligned">
                            共 <h3 class="ui header m-pink m-inline-block m-text-thin" th:text="${page.totalElements}">14</h3>篇
                        </div>
                    </div>
                </div>
                <!--  文章列表 内容 -->
                <div class="ui attached segment m-bg">
                    <div class="ui vertical padded segment m-padded-tb-large" th:each="blog : ${page.content}">
                        <div class="ui middle aligned  grid stackable mobile reversed">
                            <div class="eleven wide column">
                                <h3 class="ui header m-black" ><a th:href="@{/blog/{id}(id=${blog.id})}" target="_blank" th:text="${blog.title}">RabbitMQ</a></h3>
                                <p class="m-text" th:text="${blog.description}+'...'">
                                    RabbitMQ严格遵循AMQP协议(高级消息队列协议),帮助我们在进程之间传递异步消息（亦称面向消息的中间件）。RabbitMQ服务器是用Erlang语言编写的，而集群和故障转移是构建在开放电信平台框架上的。所有主要的编程语言均有与代理接口通讯的客户端库。</p>
                                <div class="ui stackable grid">
                                    <div class="eleven wide column">
                                        <div class="ui mini horizontal link list">
                                            <div class="item">
                                                <img th:src="@{${blog.user.avater}}"
                                                     alt="" class="ui avatar image">
                                                <div class="content"><a th:href="@{/about}" target="_self" style="color: #ffa2a2!important;"
                                                                        class="header m-pink" th:text="${blog.user.nickname}">管理员</a></div>
                                            </div>
                                            <div class="item">
                                                <a href="#"><i class="calendar icon m-pink"></i><span th:text="${#dates.format(blog.updateTime,'yyyy-MM-dd')}">2020-12-09</span></a>
                                            </div>
                                            <div class="item">
                                                <a href="javascript:void(0);"><span th:text="${blog.views}">181</span><span
                                                        class="m-pink"> ℃</span></a>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="right aligned five wide column">
                                        <a href="#" target="_blank"
                                           class="m-pink-label m-padding-tiny m-text-thin" th:text="${blog.type.name}">拓展</a>
                                    </div>
                                </div>
                            </div>
                            <div class="ui five wide column">
                                <a th:href="@{/blog/{id}(id=${blog.id})}" target="_blank">
                                    <img th:src="@{${blog.firstPicture}}"
                                         class="ui rounded image m-image" alt="">
                                </a>
                            </div>
                        </div>
                    </div>
                </div>
                <!--   分页       -->
                <div class="ui attached  segment m-bg" th:if="${page.totalPages}>1">
                    <center>
                        <table class="m-mobile-wide" width="425px">
                            <tbody>
                            <tr align="center">
                                <td>
                                    <a th:href="@{/(page=${page.number}-1)}" th:unless="${page.first}" class="ui button basic mini">上一页</a>
                                </td>
                                <td>
                                    第
                                    <h8 class="m-pink" th:text="${page.number+1}">2</h8>
                                    页/共
                                    <h8 class="m-pink" th:text="${page.totalPages}">4</h8>
                                    页
                                    &nbsp;
                                    共
                                    <h8 class="m-pink" th:text="${page.totalElements}" >29</h8>
                                    篇
                                </td>
                                <td>
                                    <form name="pageForm" th:action="@{/}" method="get">
                                        <div class="ui mini input ">
                                            <input type="text" class="m-bg" name="page" placeholder="页码" style="width: 50px!important; height: 27.76px!important;">
                                            <button type="submit" style="font-size: 11px!important;width: 30px!important; height: 0px!important; border: none;margin: 5px;padding: 0;" class="m-pink m-bg">
                                                跳转
                                            </button>
                                        </div>
                                    </form>
                                </td>
                                <td> &nbsp;</td>
                                <td class="  " style="float: right">
                                    <a  th:href="@{/(page=${page.number}+1)}" th:unless="${page.last}" class="ui button basic mini " style="float: right; ">下一页</a>
                                </td>
                            </tr>
                            </tbody>
                        </table>
                    </center>
                </div>
            </div>
            <!--    右边内容区        -->
            <div class="five wide column m-bg">
                <!--       分类         -->
                <div class="ui segments m-top-color">
                    <div class="ui m-bg secondary segment">
                        <div class="ui two column grid m-bg">
                            <div class="column">
                                <i class="icon idea m-pink "></i>分类
                            </div>
                            <div class="column right aligned m-bg">
                                <a href="#" target="_blank">more <i class="caret right icon"></i></a>
                            </div>
                        </div>
                    </div>
                    <div class="ui segment m-bg m-pink">
                        <div class="ui m-bg fluid vertical menu">
                            <a href="#" class="item" th:each="type : ${types}">
                                <span th:text="${type.name}">Java框架</span>
                                <div class="m-pink-label" th:text="${#arrays.length(type.blogs)}">12</div>
                            </a>
                        </div>
                    </div>
                </div>
                <!--       标签         -->
                <div class="ui m-bg segments m-margin-top-large ">
                    <div class="ui m-bg segment m-top-color">
                        <div class="ui two column grid m-bg">

                            <div class="column m-bg">
                                <i class="tags m-bg icon m-pink"></i>标签云
                            </div>
                            <div class="right m-bg aligned column ">
                                <a style="float: right" class="m-bg" href="/tags/-1">more
                                    <i class="caret right icon"></i></a>
                            </div>
                        </div>
                    </div>
                    <div class="cloud m-bg">
                        <ul>
                            <li>
                                <a href="#" th:each="tag : ${tags}"><span th:text="${tag.name}">SpringMVC</span>
                                <div class="m-inline-block" th:text="${#arrays.length(tag.blogs)}">3</div></a>
                            </li>
                        </ul>
                    </div>
                </div>
                <!--       最新分类         -->
                <div class="ui segments m-margin-top-large m-bg">
                    <div class="ui segment m-bg m-top-color">
                        <i class="bookmark icon m-pink m-bg"></i>最新推荐
                    </div>
                    <div class="ui m-bg segment" th:each="recommendBlog : ${recommendBlogs}">
                        <a th:href="@{/blog/{id}(id=${recommendBlog.id})}" target="_blank" class="m-black  m-text-thin" th:text="${recommendBlog.title}">RabbitMQ</a>
                    </div>
                </div>
                <!--        二维码        -->
                <h4 class="ui m-bg horizontal divider header m-margin-top-large">扫码加好友</h4>
                <div class="ui m-bg centered card" style="width: 9em">
                    <img th:src="@{/img/wechat.jpg}" alt="" class="ui m-bg rounded image">
                </div>
            </div>
        </div>
    </div>
</div>
<!--工具条-->
<div id="toolbar" class="m-bg animated fadeIn m-fixed m-right-bottom" style="display: none">
    <div class="ui vertical icon buttons">
        <div id="toTop-button" class="ui secondary m-bg-pink icon button"><i class="chevron up icon"></i></div>
    </div>
</div>
<!--页脚-->
<footer th:replace="_fragments :: footer"></footer>
<!--/*/<th:block th:replace="_fragments :: script">/*/-->
<!--/*/</th:block>/*/-->
<script>
    $(".toggle.menu").click(function (){
        $(".m-item").toggleClass("m-mobile-hide")
    })
</script>
<!--适配移动端和电脑端-->
<!--樱花飘落-->
<script type="text/javascript">
    var browser = {
        versions: function () {
            var u = navigator.userAgent, app = navigator.appVersion;
            return {     //移动终端浏览器版本信息
                trident: u.indexOf('Trident') > -1, //IE内核
                presto: u.indexOf('Presto') > -1, //opera内核
                webKit: u.indexOf('AppleWebKit') > -1, //苹果、谷歌内核
                gecko: u.indexOf('Gecko') > -1 && u.indexOf('KHTML') == -1, //火狐内核
                mobile: !!u.match(/AppleWebKit.*Mobile.*/), //是否为移动终端
                ios: !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/), //ios终端
                android: u.indexOf('Android') > -1 || u.indexOf('Linux') > -1, //android终端或uc浏览器
                iPhone: u.indexOf('iPhone') > -1, //是否为iPhone或者QQHD浏览器
                iPad: u.indexOf('iPad') > -1, //是否iPad
                webApp: u.indexOf('Safari') == -1 //是否web应用程序，没有头部与底部
            };
        }(),
        language: (navigator.browserLanguage || navigator.language).toLowerCase()
    }
    if (browser.versions.mobile) {
        //执行移动端的相关代码
        //alert("移动端");
        //设置移动端不显示网易云音乐插件
        /*      onload = function () {
                  var MusicDivShow = document.getElementById('netEasy-music');//获取指定div中的元素
                  MusicDivShow.style.display = 'none';//控制层隐藏
              };*/
    } else if (!browser.versions.mobile) { //非移动端，动态加载js和div
        //设置电脑端显示网易云音乐插件
        // onload = function () {
        //     var MusicDivShow = document.getElementById('netEasy-music');//获取指定div中的元素
        //     MusicDivShow.style.display = 'block';//控制层显示
        // };
        // var script1 = document.createElement('script');
        // script1.type = 'text/javascript';
        // script1.src = '\\js\\snow.js';

        // <!-- 天气预报 -->
        // WIDGET = {FID: 'EtgqPWMbdv'}
        // var script4 = document.createElement('script');
        // script4.type = 'text/javascript';
        // script4.src = 'https://apip.weatherdt.com/float/static/js/r.js?v=1111';

        var script2 = document.createElement('script');
        script2.type = 'text/javascript';
        // script2.src = 'https://cdn.jsdelivr.net/gh/yremp/yremp-js@1.5/sakura.js';
        script2.src = 'https://yremp.live/wp-content/uploads/resource/js/sakura.js';

        //画图
        // var script3 = document.createElement('script');
        // script3.type = 'text/javascript';
        // script3.color = '220,220,220';
        // script3.opacity = '0.7';//透明度
        // script3.zIndex = '-2';
        // script3.count = '200';
        // script3.src = '//cdn.bootcss.com/canvas-nest.js/1.0.0/canvas-nest.min.js';

        // $('body').append(script1);
        // $('body').append(script4);天气预报
        $('body').append(script2);
        // $('body').append(script3);划线背景
    }
</script>
<script>
    <!--  滚动侦测  -->
    var waypoint = new Waypoint({
        element: document.getElementById('waypoint'),
        handler: function(direction) {
            if(direction == 'down'){
                $("#toolbar").show(500);
            }else {
                $("#toolbar").hide(500);
            }
        }
    })
    <!-- 回到顶部   -->
    $("#toTop-button").click(function (){
        $(window).scrollTo(0,500)
    });
</script>
</body>
</html>
